package com.glnz.spring6.di;


import org.springframework.core.io.Resource;

/**
 * @Project ：learn_spring
 * @File ：ResourceBean.java
 * @IDE ：IntelliJ IDEA
 * @Author ：自由如风间
 * @Date ：2025/4/6 14:00
 * @Description ：For study.
 */

public class ResourceBean {

    private Resource resource;

    public Resource getResource() {
        return resource;
    }

    public void setResource(Resource resource) {
        this.resource = resource;
    }

    public void parse() {
        System.out.println(resource.getFilename());
        System.out.println(resource.getDescription());
    }
}
